package radubrehar;

public class Remote {
	
	private String message = new String();
	public Person p = new Person();
	
	public String getMessage(){
		System.out.println("message is "+this.message);
		return this.message;
	}
	
	public void setMessage(String message){
		System.out.println("setting message to "+message);
		this.message = message;
	}
	
	public void setPerson(Person person){
//		System.out.println("saving person "+person);
//		this.p.setAge(person.getAge());
//		this.p.setName(person.getName());
		
		this.p = person;
	}
	
	public Person getPerson(){
		return this.p;
	}
	
}
